package com.yqRecite.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("yq_comments")
//评论表
public class Comments {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private int id;
    @TableField("postId")
    private int postId;//被回复的评论id
    @TableField("dynamicId")
    private int dynamicId;//动态id
    @TableField("authorId")
    private int authorId;//回复的用户id
    @TableField("roleId")
    private int roleId;//回复的用户角色id
    private String username;
    private String avatar;
    private String content;//回复内容
    @TableField("createTime")
    private Date createTime;//创建时间
}
